<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>

<div id="userNetworkSection" class="networkSection">

	<c:url scope="page" value="/user/list.html" var="userNetworkListURL">
		<c:param name="id" value="${entity.id}"/>
	</c:url>

	<div id="userNetworkTitle" class="networkTitle">
		<a href="${userNetworkListURL}">Users</a>
	</div>

	
	<div id="userNetwork" class="network">	
		<c:if test="${entity.userNetworkSize != 0}">
	
			<c:forEach items="${entity.usersInNetwork}" var="user">
	
				<c:url scope="page" value="/user/profile.html" var="userProfileURL">
					<c:param name="id" value="${user.id}"/>
				</c:url>
				<c:url scope="page" value="/getImage.do" var="userImg">
					<c:param name="imgsrc" value="${user.imgSrc}"/>
				</c:url>
	
				<div class="networkMember">
					<div class="networkMemberImg">
						<a href="${userProfileURL}">
							<img src="${userImg}" width="60" class="networkMemberImg" />
						</a>
					</div> <!-- .networkMemberImg -->
					
					<div class="networkMemberName">
						<a href="${userProfileURL}">
							${user.name}
						</a>
					</div>
				</div> <!-- #.networkMember -->
			
			</c:forEach>
		</c:if>
	
		<hr/>
	</div> <!-- #userNetwork -->
	
	<div id="allUserNetworkMembers" class="allNetworkMembers">
		<a href="${userNetworkListURL}">&raquo; See all ${entity.userNetworkSize} user members</a>
	</div><!-- .seeAllNetworkMembers -->

</div> <!-- #userNetworkSection -->
	